<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title>精灵图案例</title>
    <style>
        #root {
            width: 800px;
            height: 600px;
            margin: 0 auto;
            background: rgba(0, 0, 0, 0.2);
            position: relative;
            left: 0;
            top: 0;

        }
     
        .name {
            float: left;
            width: 215px;
            height: 250px;
            
            border: solid 1px palevioletred;
            background: url('../picture/26个字母.jpeg') no-repeat;
        }
        .c {
            background-position: -507px -282px;
        }
        .w {
            background-position: -410px -1235px;
        }
        .j {
            background-position: -483px -585px;
        }
    </style>
</head>

<body>
    <div id="root">
      
            <div class="name c"></div>
            <div class="name w" style="width: 300px;height: 260px;"></div>
            <div class="name j"></div>
       
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>